home *** CD-ROM | disk | FTP | other *** search
-
- A CORRECTION CONCERNING ASSEMBLY MODULE SETUP
-
- Depending on the documentation version, you may find in Chapter 10 that it is
- recommended that segments be given the name "CODE" when writing your own
- assembly language routines. This works fine in Turbo C, but not in certain
- memory models with the Microsoft compilers. Instead, name the segment
- "_TEXT", as in:
-
- _TEXT SEGMENT BYTE PUBLIC 'CODE'
- ASSUME CS:_TEXT
- PUBLIC _draw_box
- _draw_box proc near
- .
- .
- .
- .
- .
- _draw_box endp
- _TEXT ENDS
- END
-
- This approach works in all memory models for all compilers, Borland and
- Microsoft alike.